Skip to content

Fix integer overflow in DMA allow list boundary check#298

Open
sameehj wants to merge 1 commit intowolfSSL:mainfrom
sameehj:dma
Open

Fix integer overflow in DMA allow list boundary check#298
sameehj wants to merge 1 commit intowolfSSL:mainfrom
sameehj:dma

Conversation

@sameehj
Copy link
Contributor

@sameehj sameehj commented Mar 12, 2026

Add overflow guards to _checkAddrAgainstAllowList to prevent address-space wraparound from bypassing the allow list on 32-bit and 64-bit systems. Reject requests where addr + size overflows, and skip allow list entries whose own range overflows.

Add overflow guards to _checkAddrAgainstAllowList to prevent
address-space wraparound from bypassing the allow list on 32-bit
and 64-bit systems. Reject requests where addr + size overflows,
and skip allow list entries whose own range overflows.

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
@sameehj sameehj assigned sameehj and wolfSSL-Bot and unassigned sameehj Mar 16, 2026
@sameehj sameehj requested review from bigbrett and billphipps and removed request for billphipps March 16, 2026 11:09
@sameehj
Copy link
Contributor Author

sameehj commented Mar 16, 2026

The test failure is not related to this PR and has been addressed in the following PR: #301

Copy link
Contributor

@padelsbach padelsbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants